import os

# 检查 JAVA_HOME 环境变量
java_home = os.getenv('JAVA_HOME')
if java_home:
    print(f"JAVA_HOME is set to: {java_home}")
else:
    print("JAVA_HOME is not set.")

# 检查 ANT_HOME 环境变量
ant_home = os.getenv('ANT_HOME')
if ant_home:
    print(f"ANT_HOME is set to: {ant_home}")
else:
    print("ANT_HOME is not set.")